home *** CD-ROM | disk | FTP | other *** search
/ Zoom 2 / Zoom - Release 2 (1996)(Active Software)[!].iso / programming / amiga / visualarts / source / icon / icon_func.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-02  |  1.1 KB  |  60 lines

  1. /* C code generated by:                            */
  2. /* Visual Arts Version 2.1                        */
  3. /* Copyright (c)1994-95 Danny Y. Wong  All rights reserved        */
  4. /* Calgary, Alberta (CANADA)                                    */
  5.  
  6. extern void IconDrawRects(struct Window *Wind);
  7. extern struct Window  *IconWnd;
  8. extern struct Gadget *IconGadgets[IconNumGads];
  9.  
  10. void IconDrawRects(struct Window *Wind)
  11. {
  12.   UWORD offsetx = Scr->WBorLeft;
  13.   UWORD offsety = Scr->WBorTop + Scr->RastPort.TxHeight + 1;
  14.  
  15.   DrawBevelBox(Wind->RPort, 1+offsetx, 0+offsety, 297, 28, 
  16.     (GT_VisualInfo), VisualInfo, TAG_DONE);
  17.   SetDrPt(Wind->RPort, 0xFFFF);
  18.   SetOPen(Wind->RPort, 0);
  19.   SetAfPt(Wind->RPort, NULL, 0);
  20. }
  21.  
  22.              /* gadget functions */
  23.  
  24. int QuitObj(struct VAobject VAObject)
  25. {
  26.   return(-1L);
  27. }
  28. /*    Button  Quit         */ 
  29.  
  30. int icon1Obj(struct VAobject VAObject)
  31. {
  32.   return(1L);
  33. }
  34. /*    Hilight           */ 
  35.  
  36. int icon2Obj(struct VAobject VAObject)
  37. {
  38.   return(1L);
  39. }
  40. /*    Hilight           */ 
  41.  
  42. int icon3Obj(struct VAobject VAObject)
  43. {
  44.   return(1L);
  45. }
  46. /*    Hilight           */ 
  47.  
  48. int icon4Obj(struct VAobject VAObject)
  49. {
  50.   return(1L);
  51. }
  52. /*    Hilight           */ 
  53.  
  54. int icon5Obj(struct VAobject VAObject)
  55. {
  56.   return(1L);
  57. }
  58. /*    Hilight           */ 
  59.  
  60.